package com.woniuxy.exam.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.woniuxy.commons.entity.ShortAnswer;
import com.woniuxy.exam.mapper.ShortAnswerMapper;
import com.woniuxy.exam.service.ShortAnswerService;

import java.util.List;

/**
@author zouyang
@date 2020/7/25 - 16:41
*/
@Service
public class ShortAnswerServiceImpl implements ShortAnswerService{

    @Resource
    private ShortAnswerMapper shortAnswerMapper;

    @Override
    public List<ShortAnswer> selectAll() {
        return shortAnswerMapper.selectAll();
    }

    @Override
    public int insertList(List<ShortAnswer> list) {
        return shortAnswerMapper.insertList(list);
    }

    @Override
    public List<ShortAnswer> selectByAll(ShortAnswer shortAnswer) {
        return shortAnswerMapper.selectByAll(shortAnswer);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return shortAnswerMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ShortAnswer record) {
        return shortAnswerMapper.insert(record);
    }

    @Override
    public int insertSelective(ShortAnswer record) {
        return shortAnswerMapper.insertSelective(record);
    }

    @Override
    public ShortAnswer selectByPrimaryKey(Integer id) {
        return shortAnswerMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ShortAnswer record) {
        return shortAnswerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ShortAnswer record) {
        return shortAnswerMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Integer> selectIdByBankId(Integer bankId) {
        return shortAnswerMapper.selectIdByBankId(bankId);
    }

}
